import {takeEvery,put } from 'redux-saga/effects'
import { SET_LIST_SAGA,CHANGE_ITEM_SAGA } from './actionType'
import { changeItemAction } from './actionCreators'
function* mySaga(){
    yield takeEvery(SET_LIST_SAGA,setList)
    yield takeEvery(CHANGE_ITEM_SAGA,changeItem)
}
function* setList(){
    console.log("yield setList")
    const action = changeItemAction(["123",123,234]);
    yield put(action)
}
function* changeItem(){
    const action = changeItemAction([1,2,3,4,5])
    yield put(action)
}
export default mySaga